<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script src="jquery-1.9.1.min.js"></script>
<script src="EMRegionSelection.js"></script>
<link href="EMRegionSelection.css" rel="stylesheet" type="text/css" />
</head>

<body>



测试框 <input  type="text" class="EMRegion" name="tb" value="" />

<script>
$(function(){
	
	
	    //服务端返回格式，[{"ID":"1","Name":"北京","FullName":"中国 北京"},........]，
		//JSONP记得加入 Request["callback"] + "(" + 已组装的JSON + ")";
		
		$(".EMRegion").EMRegion({
			AutoCompleteTrigger:1,
			AutoCompleteData:"http://localhost:16581/EMArea/AutoComplete",
			InputKey:"input",
			SelectPanelData:"http://localhost:16581/EMArea/GetAreaByParentID",
			SelectParentKey:"parentID",
			RequestType:"jsonp",
			Delay:500,
			CommonRegion:[
			{"ID":"1","Name":"北京市"},
			{"ID":"22","Name":"天津市"},
			{"ID":"868","Name":"上海市"},
			{"ID":"2479","Name":"重庆市"},
			{"ID":"1277","Name":"福州市","FullName":"福建省 福州市"}
			]
			});
	
	
	});

</script>

</body>
</html>

